<div class="doc-item" id="doc-898"><h2 class="doc-item-name">get-proxy-class<span class="namespace">(clojure.core)</span></h2><ul class="var-arglists"><li>(<span class="var-name">get-proxy-class</span> &amp; bases)</li></ul><div class="var-docstring"><p>Takes an optional single class followed by zero or more
  interfaces. If not supplied class defaults to Object.  Creates an
  returns an instance of a proxy class derived from the supplied
  classes. The resulting value is cached and used for any subsequent
  requests for the same class set. Returns a Class object.</p></div><div class="var-source"><pre>; clojure/core_proxy.clj:247
(defn get-proxy-class 
  [&amp; bases]
    (let [[super interfaces] (get-super-and-interfaces bases)
          pname (proxy-name super interfaces)]
      (or (RT/loadClassForName pname)
          (let [[cname bytecode] (generate-proxy super interfaces)]
            (. (RT/getRootClassLoader) (defineClass pname bytecode))))))</pre></div><div class="license"><p>Copyright (c) Rich Hickey. All rights reserved.</p><p>The use and distribution terms for this software are covered by the <a href="http://opensource.org/licenses/eclipse-1.0.php">Eclipse Public License 1.0</a>, which can be found in the file
          epl-v10.html at the root of this distribution. By using this software
          in any fashion, you are agreeing to be bound by the terms of this
          license. You must not remove this notice, or any other, from this
          software.</p></div></div>